package com.zllkj.mm.module.home.fragments;

import android.view.View;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import com.zllkj.mm.R;
import com.zllkj.mm.base.BaseTitleFragment;
import butterknife.BindView;
import butterknife.OnClick;

/**
 * 钱包
 * ruigang
 */
public class WalletFragment extends BaseTitleFragment {

    @BindView(R.id.balanceLayout)
    LinearLayout balanceLayout;
    @BindView(R.id.rechargeLayout)
    LinearLayout rechargeLayout;
    @BindView(R.id.cashLayout)
    LinearLayout cashLayout;
    @BindView(R.id.bankCardLayout)
    LinearLayout bankCardLayout;
    @BindView(R.id.transactionRecordLayout)
    RelativeLayout transactionRecordLayout;

    public static WalletFragment newInstance() {
        return new WalletFragment();
    }

    @Override
    protected int getContentLayoutId() {
        return R.layout.fragment_wallet;
    }

    @Override
    protected void initView(View rootView) {
        super.initView(rootView);
        setCommonTitle("钱包");
    }

    @OnClick({R.id.balanceLayout, R.id.rechargeLayout, R.id.cashLayout, R.id.bankCardLayout, R.id.transactionRecordLayout})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.balanceLayout:
                addFragment(BalanceFragment.newInstance());
                break;
            case R.id.rechargeLayout:

                break;
            case R.id.cashLayout:

                break;
            case R.id.bankCardLayout:

                break;
            case R.id.shoppingCartLayout:

                break;
            case R.id.transactionRecordLayout:
                break;
        }
    }


}

